<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/19
  Time: 11:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加选课学生</title>
    <link href="TeacherNav.css" rel="stylesheet" type="text/css">
    <link href="/SystemerNav/SystemerNav.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>

<%
    String workerNo=(String) session.getAttribute("workerNo");
    String courseNo=(String) session.getAttribute("courseNo");
    request.setCharacterEncoding("UTF-8");
    response.setContentType("text/html;charset=UTF-8");
%>
<body background="/LoginInterface/loginFace.jpg">
<div class="container">
    <div class="top">
        <div id="navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="courseMangement.jsp?workerNo=<%=workerNo%>&courseNo=<%=courseNo%>">首页</a> </li>
                <li><a href="/TeacherServlet/seletIntroduceServlet?workerNo=<%=workerNo%>&courseNo=<%=courseNo%>">课程简介</a> </li>
                <li><a href="AddStudentLesson.jsp">添加学生</a> </li>
                <li><a href="unitStudy.jsp">单元学习</a></li>
                <li><a href="courseWorkMangement.jsp">作业管理</a> </li>
                <li><a href="">答疑讨论</a> </li>
            </ul>
        </div>
    </div>
    <div class="bottom">
        <form action="/TeacherServlet/AddStudentLessonServlet" method="post">
        <table  class="table table-striped">
            <tr>
                <td>添加单个学生</td>
                <td>学号</td>
                <td>
                    <input type="hidden" name="courseNo" value="<%=courseNo%>">
                    <input type="hidden" name="workerNo" value="<%=workerNo%>">
                    <input type="text" name="studentNo">
                    <input type="hidden" name="nums" value="1">
                </td>
                <td>
                    <button type="submit" class="btn btn-default btn-lg">
                        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加
                    </button>
                </td>
            </tr>
        </table>
        </form>
        <form action="/TeacherServlet/AddStudentLessonServlet" method="post">
           <table class="table table-striped">
            <tr>
                <td>按班级添加</td>
                <td>班级名</td>
                <td>
                    <input type="hidden" name="courseNo" value="<%=courseNo%>">
                    <input type="hidden" name="workerNo" value="<%=workerNo%>">
                    <input type="text" name="className" >
                     <input type="hidden" name="nums" value="2">
                </td>
                <td>
                    <button type="submit" class="btn btn-default btn-lg">
                        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加
                    </button>
                </td>
            </tr>
        </table>
        </form>
    </div>
</div>


</body>
</html>
